package com.zego.wawaji.ui.store.declare;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.widget.ImageView;

import com.zego.wawaji.R;
import com.zego.wawaji.base.module.ModuleMgr;
import com.zego.wawaji.third.image.ImageLoader;
import com.zego.wawaji.ui.base.BaseAppCompatActivity;

/**
 * 商城说明页
 * Created by Su on 2018/1/10.
 */
public class StoreDeclareActivity extends BaseAppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.store_declare_act);
        initView();
    }

    private void initView() {
        setBackView();
        setTitle("兑换说明");

        ImageView inviteBg = (ImageView) findViewById(R.id.declare_bg);
        String inviteUrl = ModuleMgr.getWawaMgr().getCommon().getExchangeImg();
        if (!TextUtils.isEmpty(inviteUrl))
            ImageLoader.loadCenterCrop(this, inviteUrl, inviteBg, R.drawable.store_declare_bg, R.drawable.store_declare_bg);
    }
}
